<!-- -*- coding: utf-8 -*- -->
<html>
<head>
<title>fricorder <py-eval="VERSION"> by manatlan</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script>
<py-eval="script">

function setHour(h,d)
{
    document.forms["fricorder"].heure.value=h;
    document.forms["fricorder"].duree.value=d;
}
</script>
<link rel="stylesheet" type="text/css" href="/style.css" />
</head>
<body>
<table>
<tr>
<td valign="top">
    <form name='fricorder' action="/save" method="POST">
        <table>
        <tr>

            <td>
                Chaine
            </td>
            <td>

                <select name='chaine' onchange='x_refresh(this.value,this.form.jour.value,"tv");'>
                       <option value=''></option>
                 <py-for="num,chaine,stream in chaines">
                       <option value='<py-eval="str(num)">'><py-eval="str(num)">) <py-eval="chaine"></option>
                </py-for>
                </select>

            </td>
        </tr>
        <tr>
            <td>
            Le
            </td>
            <td>
                <select name='jour' onchange='x_refresh(this.form.chaine.value,this.value,"tv");'>
                 <py-for="num,jour in jours">
                       <option value='<py-eval="str(num)">'><py-eval="jour"></option>
                </py-for>
                </select>
            </td>
        </tr>
        <tr>
            <td>
            Heure
            </td>
            <td>
                <input type='text' name='heure' size="5" maxlength="5" value=""/> <i>format hh:mm</i>
            </td>
        </tr>
        <tr>
            <td>
            Durée
            </td>
            <td>
                <input type='text' name='duree' size="3" maxlength="3" value=""/> <i>minutes</i>
            </td>
        </tr>
        <tr>
            <td>
            Qualite
            </td>
            <td>
                <select name='qualite'>
                 <py-for="num,libl in qualites">
                       <option value='<py-eval="str(num)">'
             <py-if="num==qualite">
                                        selected
                            </py-if>
                        ><py-eval="libl"></option>
                </py-for>
                </select>
            </td>
        </tr>
        <tr>
            <td>
            Destination
            </td>
            <td>
                <input type='text' name='destination' size="30" maxlength="64" value="<py-eval="destination">"/>
            </td>
        </tr>
        </table>
        <input type='submit' value='Ajouter'>
    </form>

    Enregistrement(s) prévu(s) :
    <table class='border'>
      <tr>
      <th></th>
      <th>Chaine</th>
      <th>Date</th>
      <th>Heure</th>
      <th>Fin</th>
      <th>Shutdown</th>
      </tr>
         <py-for="code,chaine,date,heure,fin,fileId,color,isHalt in liste">
                <tr bgcolor="<py-eval="color">">
                    <td><a href="/action/supprime?job=<py-eval="str(code)">&fileid=<py-eval="fileId">">X</a></td>
                    <td><py-eval="chaine"></td>
                    <td><py-eval="date"></td>
                    <td><py-eval="heure"></td>
                    <td><py-eval="fin"></td>
                    <td>
                        <a href="/action/toggle?fileid=<py-eval="fileId">&nimp=<py-eval="fuckCache">">
        <py-if="isHalt">on</py-if>
                     <py-if="not isHalt">off</py-if>
                     </a>
                    </td>
                </tr>
        </py-for>
    </table>
</td>
<td valign="top">
  <div id="tv">
  </div>
</td>
</tr>
</table>
</body>
</html>
